﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AutoSentEmailSetting.aspx.cs" Inherits="SysManage_AutoSentEmailSetting" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>邮件自动发送设置</title>
    <link href="../CSS/SubStyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            font-size: 12px;
            width: 15%;
            text-align: right;
            height: 35px;
        }
        .style2
        {
            width: 15%;
            text-align: left;
            height: 35px;
        }
        .style3
        {
            width: 10%;
            height: 35px;
        }
        .style4
        {
            width: 30%;
            height: 35px;
        }
        .style5
        {
            height: 24px;
        }
        .style6
        {
            height: 26px;
        }
        .style7
        {
            height: 29px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <table cellpadding="0" cellspacing="0" class="topTable">
            <tr>
                <td class="topTd">
                    <asp:Label ID="lblLocation" runat="server" Text="<%$ Resources:language, Location %>"></asp:Label><img
                        alt="当前位置" src="../Image/weizhi.gif" />>><asp:Label ID="Label1" runat="server" Text="邮件自动发送设置"></asp:Label><asp:Label
                            ID="Label2" runat="server" Text="<%$ Resources:language, Must1 %>"></asp:Label><font
                                color="#ff0000">*</font><asp:Label ID="Label3" runat="server" Text="<%$ Resources:language, Must2 %>"></asp:Label>
                </td>
            </tr>
        </table>
    <asp:UpdatePanel ID="updHead" runat="server">
    <ContentTemplate>
        <fieldset style="margin-top:5px;">
            <legend><font style="font-size: 12px;">
                <asp:Label ID="Label11" runat="server" Text="时间设定"></asp:Label></font></legend>
        <table cellpadding="0" cellspacing="0" style="width:100%;" class="topTdInput">
                                        <tr>
                                            <td colspan="6" class="trHeadFoot"></td>
                                        </tr>
                                        <tr>
                                            <td class="td10"> &nbsp;</td>
                                            <td class="td10">
                                                <asp:Label ID="Label10" runat="server" Text="选择方式:"></asp:Label>
                                            </td>
                                            <td class="td20">
                                                <asp:RadioButtonList ID="RadType" runat="server" 
                                                    RepeatDirection="Horizontal">
                                                    <asp:ListItem Value="0" Selected="True">取小</asp:ListItem>
                                                    <asp:ListItem Value="1">取大</asp:ListItem>
                                                </asp:RadioButtonList>
                                                </td>                                            
                                            <td class="td10">
                                                &nbsp;</td>
                                            <td class="td20">
                                                &nbsp;</td>
                                            <td class="td20">
                                                &nbsp;</td>
                                            <td class="td10">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="td10"> </td>
                                            <td class="td10">
                                                <asp:Label ID="Label8" runat="server" Text="时间字段:"></asp:Label>
                                            </td>
                                            <td class="td20">
                                                <span style="color: #ff0000" class="rightTd">
                                                    <asp:DropDownList ID="ddlDay1" runat="server" AutoPostBack="True" OnTextChanged="ddlWebGroupName_TextChanged"
                                                        Width="97%">
                                                    </asp:DropDownList></span>
                                                </td>                                            
                                            <td class="td10">
                                                <asp:Label ID="Label9" runat="server" Text="相隔天数:"></asp:Label>
                                            </td>
                                            <td class="td20">
                                                <input type="text" runat="server" id="txtDay1" class="txtStyle" onblur="txtIsNum(this.id)" value="0" />
                                                </td>
                                            <td class="td20">
                                                &nbsp;</td>
                                            <td class="td10"></td>
                                        </tr>
                                        <tr>
                                            <td class="td10"> &nbsp;</td>
                                            <td class="td10">
                                                &nbsp;</td>
                                            <td class="td20">
                                                <span style="color: #ff0000" class="rightTd">
                                                    <asp:DropDownList ID="ddlDay2" runat="server" AutoPostBack="True" OnTextChanged="ddlWebGroupName_TextChanged"
                                                        Width="97%">
                                                    </asp:DropDownList></span>
                                                </td>                                            
                                            <td class="td10">&nbsp;</td>
                                            <td class="td20">
                                                <input type="text" runat="server" id="txtDay2" class="txtStyle" 
                                                    onblur="txtIsNum(this.id)" value="0" /></td>
                                            <td class="td20">
                                                &nbsp;</td>
                                            <td class="td10">&nbsp;</td>
                                        </tr>                                        
                                        <tr>
                                            <td class="td10"> &nbsp;</td>
                                            <td class="td10">
                                                &nbsp;</td>
                                            <td class="td20">
                                                <span style="color: #ff0000" class="rightTd">
                                                    <asp:DropDownList ID="ddlDay3" runat="server" AutoPostBack="True" OnTextChanged="ddlWebGroupName_TextChanged"
                                                        Width="97%">
                                                    </asp:DropDownList></span>
                                                </td>                                            
                                            <td class="td10">&nbsp;</td>
                                            <td class="td20">
                                                <input type="text" runat="server" id="txtDay3" class="txtStyle" 
                                                    onblur="txtIsNum(this.id)" value="0" /></td>
                                            <td class="td20">
                                                &nbsp;</td>
                                            <td class="td10">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td colspan="6" class="trHeadFoot"></td>
                                        </tr>
                                        <tr>
                                            <td class="td10"> &nbsp;</td>
                                            <td class="td10">
                                                &nbsp;</td>
                                            <td align="right">
                                                <asp:Button ID="cmdSave0" runat="server" CssClass="cmdStyle"
                                        Text="确定" onclick="cmdSave0_Click" />
                                                </td>                                            
                                            <td class="td10">&nbsp;</td>
                                            <td class="td20">
                                                &nbsp;</td>
                                            <td class="td20">
                                                &nbsp;</td>
                                            <td class="td10">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td colspan="6" class="trHeadFoot"></td>
                                        </tr>
                                    </table>
        </fieldset>
       </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="updColumn" runat="server">
    <ContentTemplate>
    <fieldset style="margin-top:5px;">
            <legend><font style="font-size: 12px;">
                <asp:Label ID="Label12" runat="server" Text="导出字段设定"></asp:Label></font></legend>
        <fieldset style="margin-top:5px;">
                        <legend><font style="font-size: 12px;">
                            <asp:Label ID="lblLegend1" runat="server" Text="<%$ Resources:language, Legend1 %>"></asp:Label></font></legend>
                         <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;" class="topTdInput">
                                        <tr>
                                            <td class="style1">
                                                <asp:Label ID="Label4" runat="server" Text="<%$ Resources:hwlan, webRolesGroupName %>"></asp:Label></td>
                                            <td class="style2">
                                                <span style="color: #ff0000" class="rightTd">
                                                    <asp:DropDownList ID="ddlRolesGroupName" runat="server" AutoPostBack="True" OnTextChanged="ddlWebGroupName_TextChanged"
                                                        Width="97%">
                                                    </asp:DropDownList></span></td>
                                            <td align="right" class="style3">
                                                <asp:Label ID="Label7" runat="server" Text="<%$ Resources:hwlan, swcrTypeName %>"></asp:Label></td>
                                            <td align="left" class="style4">
                                                <asp:TextBox runat="server" ID="txtCondition"></asp:TextBox>
                                                <asp:Button runat="server" ID="cmdQuery" CssClass="cmdStyle" OnClick="cmdQuery_Click"
                                                    Text="<%$ Resources:hwlan, search %>" />
                                            </td>
                                        </tr>
                                    </table>
                    </fieldset>
        <fieldset style="margin-top:5px;">
            <legend><font style="font-size: 12px;">
                <asp:Label ID="lblLegend2" runat="server" Text="<%$ Resources:language, Legend2 %>"></asp:Label></font></legend>
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%" class="topTdInput">
                            <tr>
                                <td colspan="3" class="trHeadFoot"></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 40%">
                                    <asp:Label ID="Label5" runat="server" Text="属于页面角色组不导出的字段"></asp:Label></td>
                                <td align="center" style="width: 15%">
                                </td>
                                <td align="left" style="width: 40%">
                                    <asp:Label ID="Label6" runat="server" Text="属于页面角色组导出的字段"></asp:Label></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 40%" valign="middle">
                                    <asp:ListBox ID="lbxRolesNotInGroup" runat="server" Height="150px" Rows="25" Width="80%"
                                        SelectionMode="Multiple"></asp:ListBox>&nbsp;</td>
                                <td align="center" style="width: 15%">
                                    <asp:Button ID="Button1" runat="server" CssClass="cmdStyle" OnClick="Button1_Click"
                                        Text="&gt;" />
                                    <asp:Button ID="Button2" runat="server" CssClass="cmdStyle" OnClick="Button2_Click"
                                        Text="&lt;" /><br />
                                    <asp:Button ID="Button4" runat="server" CssClass="cmdStyle" OnClick="Button4_Click"
                                        Text="<%$ Resources:hwlan, swgad %>" />
                                    <asp:Button ID="Button3" runat="server" CssClass="cmdStyle" OnClick="Button3_Click"
                                        Text="<%$ Resources:hwlan, swgdd %>" /></td>
                                <td align="left" style="width: 40%">
                                    <asp:ListBox ID="lbxRolesInGroup" runat="server" Height="150px" Rows="15" Width="80%"
                                        SelectionMode="Multiple"></asp:ListBox></td>
                            </tr>
                            <tr>
                                <td colspan="3" class="trHeadFoot">
                            </tr>
                            <tr>
                                <td align="right" class="style7">
                                    <asp:Button ID="cmdSave" runat="server" CssClass="cmdStyle" OnClick="cmdSave_Click"
                                        Text="<%$ Resources:hwlan, swgok %>" />
                                </td>
                                <td align="center" class="style7">
                                    </td>
                                <td align="left" class="style7">
                                    </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 40%">
                                    <asp:ListBox ID="lbxDelete" runat="server" Height="1px" Rows="25" Width="60%" SelectionMode="Multiple"
                                        Visible="False"></asp:ListBox></td>
                                <td align="center" style="width: 15%">
                                </td>
                                <td align="left" style="width: 40%">
                                    <asp:ListBox ID="lbxInsert" runat="server" Height="1px" Rows="25" Width="42%" SelectionMode="Multiple"
                                        Visible="False"></asp:ListBox>
                                    <asp:ListBox ID="lbxInsert2" runat="server" Height="1px" Rows="25" Width="40%"
                                        SelectionMode="Multiple" Visible="False"></asp:ListBox></td>
                            </tr>
                        </table>
        </fieldset>
    </fieldset>
       </ContentTemplate>
    </asp:UpdatePanel>
        <script language="javascript" type="text/javascript">
                function txtIsNum(strID) {
                    var a = document.getElementById(strID).value;
                    if (isNaN(a)) {
                        document.getElementById(strID).value = "0";
                        alert("It must be Number!");
                    }
                }
            </script>
    </form>
</body>
</html>